package com.tjrac.zhaopin;

import com.alibaba.fastjson.JSON;
import com.tjrac.zhaopin.entity.SysUser;

import java.util.List;

public class Retain {
    public static void main(String[] args) {
        String a = "[\"前端\",\"JAVA\",\"PHP\"]";
        String b = "[\"后端\"]";
        List<String> hunterTag = JSON.parseArray(a, String.class);
        List<String> jobTag = JSON.parseArray(b, String.class);
        hunterTag.retainAll(jobTag);
        System.out.println(hunterTag.toString());
    }
}
